package com.test.staticass;


public class OuterClass {

    private String className;
    private String tabl;

    public static void main(String[] args){
        OuterClass outer = new OuterClass();
        outer.getInnerStaticClassName();
        InnerClass innerClass = outer.new InnerClass("内部类");
        System.out.println(innerClass.getClassName());
    }

    private String getInnerStaticClassName () {
        String s = InnerStaticClass.className;
        return s;
    }

    static class InnerStaticClass{
        public static String className = "静态内部类";

    }


    class InnerClass{
        private String className;
        public InnerClass(String _className){
            this.className = _className;
        }

        public String getClassName() {
            return className;
        }

        public void setClassName(String className) {
            this.className = className;
        }
    }


    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTabl() {
        return tabl;
    }

    public void setTabl(String tabl) {
        this.tabl = tabl;
    }
}
